<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="VectorX">
    <meta name="keywords" content="高度塌陷与BFC">
    <title>高度塌陷与BFC</title>
    <style>
        .div1 {
            width: 200px;
            height: 200px;
            background-color: orange;
            float: left;
        }

        .div2 {
            width: 300px;
            height: 300px;
            background-color: dodgerblue;
            overflow: hidden;
        }
    </style>
</head>

<body>

    <div class="div1"></div>
    <div class="div2"></div>

</body>

</html>